package com.zr.inquiry.spare.mapper;

import com.zr.inquiry.spare.model.pojo.InquirySpareDetailsVo;
import com.zr.inquiry.spare.model.pojo.QueryPageSelectMaterialVo;
import com.zr.inquiry.total.model.pojo.SpareVendor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName SpareMapper
 * @Description TODO
 * @Author 马家奎
 * @Date 2019/11/15 15:32
 */
@Mapper
public interface SpareMapper {
    Integer getCount(QueryPageSelectMaterialVo materialVo);

    List<QueryPageSelectMaterialVo> getCurrentPageData(QueryPageSelectMaterialVo materialVo);

    List<SpareVendor> queryPartnerBySpareCodes(List<String> spareCodes);

    void addSpare(List<InquirySpareDetailsVo> inquiryDetailsList);

    Integer queryByQuotationId(String requestForQuotationId);

    void deleteSpareByInquiryId(Integer inquiryId);

    List<String> queryBySpareCodes(List<String> parSpareCodes);
}
